//
//  KKCommentTools.swift
//  KKWeibo
//
//  Created by kassia on 16/7/14.
//  Copyright © 2016年 kassia. All rights reserved.
//

import UIKit

// 随机颜色
func RGB (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) -> (UIColor) {

  return UIColor(red: red, green: green, blue: blue, alpha: alpha)
    
}

func RandomColor () -> (UIColor) {

    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
    
    return RGB(CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)

}

// 当前屏幕的宽
let screenWidth = UIScreen.mainScreen().bounds.size.width

// 当前屏幕的高
let screenHeight = UIScreen.mainScreen().bounds.size.height

class KKCommentTools: NSObject {

}
